window._TIPS = {

    _CURRENTNODE:null,

    _TIPSNODE:null,

    setNode:function(node){
        _TIPS._CURRENTNODE = node;
    },

    showMessage:function(msg,senceType){

        var uiObj = _GRM.getNodeObj('tips');
        var mainLabel = uiObj.node;
        mainLabel.getChildByName('message').getComponent(cc.Label).string = msg;

        if(uiObj.isnew){
            mainLabel.getChildByName('mask').on(cc.Node.EventType.TOUCH_START, function(){
                //_GRM.putNode(this);
                _TIPS.giveBackTips();
            }, mainLabel);
        }

        _TIPS._TIPSNODE = mainLabel;
        _TIPS._CURRENTNODE.addChild(mainLabel);
    },

    giveBackTips:function(){

        if(_TIPS._TIPSNODE!=null){

            _GRM.putNode(_TIPS._TIPSNODE);

            _TIPS._TIPSNODE=null;

        }

    }


}